package com.bdqn.easybuy1.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order implements Serializable {
    // 实现序列化接口
    public static final long serialVersionUID = 4265461615984912L;
    /**
     * ID
     */
    private Integer id;
    /**
     * 订单号
     */
    private String serialNumber;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 用户的登录名
     */
    private String loginName;
    /**
     * 收货地址
     */
    private String userAddress;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 订单总计价格
     */
    private Float cost;
    /**
     * 订单详情
     */
    private List<OrderDetail> orderDetailList;
}
